<?php
	//Class'a gelen content'i sayfaya dahil eder
	class Page {
		private $page ;
		public function __construct ( $page ) {
			$this -> page = "includes/".$page.".php" ;
			if ( file_exists ( $this -> page ) ) {
				include_once ( $this -> page ) ;
			} else {
				header ( "Location: index.php" ) ;
			}
		}
	}
?>
